package com.zepher.springboot.mapper;

import com.zepher.springboot.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminMapper {
    @Select("select * from admin where username = #{username}")
    Admin selectByUsername(String username);

    List<Admin> selectAll(Admin admin);

    @Select("select * from admin where id = #{id}")
    Admin selectById(Integer id);

    void insert(Admin admin);

    void update(Admin admin);

    void delete(Integer id);
}
